package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

/**
 * 优惠券
 */
public class UserCouponItem extends DataObject {
	private long itemId;					//优惠券道具编号
	private long userId;
	private int goodsId;
	private long getTime;					//获得时间
	private long expirationTime;			//到期时间
	private boolean isUse;					//是否使用

	public long getItemId() {
		return itemId;
	}

	public void setItemId(long itemId) {
		if(this.itemId != itemId) {
			this.itemId = itemId;
			setUpdateOption();
		}
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if(this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		if(this.goodsId != goodsId) {
			this.goodsId = goodsId;
			setUpdateOption();
		}
	}

	public long getGetTime() {
		return getTime;
	}

	public void setGetTime(long getTime) {
		if(this.getTime != getTime) {
			this.getTime = getTime;
			setUpdateOption();
		}
	}

	public long getExpirationTime() {
		return expirationTime;
	}

	public void setExpirationTime(long expirationTime) {
		if(this.expirationTime != expirationTime) {
			this.expirationTime = expirationTime;
			setUpdateOption();
		}
	}

	public boolean isUse() {
		return isUse;
	}

	public void setUse(boolean use) {
		if(this.isUse != use) {
			isUse = use;
			setUpdateOption();
		}
	}
}
